#include "game.h"
#include "buttons.h"



class PongGame: public Game
{
	RectangularGameObject leftPaddle;
	RectangularGameObject rightPaddle;

	Vector2D leftLoc;
	float leftVel;

	Vector2D rightLoc;
	float rightVel;

	float paddleHeight;
	float paddleWidth;

	Vector2D puckLoc;
	Vector2D puckVelocity;
	float puckRadius;
	static const int maxPuckVel = 25;

	CircularGameObject puck;

	Button startButton;
	Button endButton;

	int reClock;
	bool countdown;

	int lScore;
	int rScore;
	static const int maxScore = 5;
	
	int lWins;
	int rWins;



	currentState theState;
	
public:

	void GameInit();
	void GameMain();
	void GameShutdown();

	void theGameLoop();

	void leftControl();
	void rightControl();
	void puckCheck();

	void gameStart();

	void scoreCheck();

	GameResult GetResult();
};

Game* GetPongGame();